<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.lang.Exception" language="java"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
  /*
   * 设置状态码, 表示业务异常
   */
  response.setStatus(805);
 Exception ex = (Exception)request.getAttribute("exception");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>系统异常</title>
  </head>
  <body>
      <div align="center">error-business.jsp</div>
    <table align="center" style="width: 70%;" cellpadding="0" cellspacing="0" class="angma-error-table">
          <tr>
              <td align="right" width="120px" class="angma-error-table-label">异常码</td>
          </tr>
          <tr>
              <td align="right">异常发生时间</td>
              <td>
                  <%
                      SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                      String dataStr = format.format(new Date());
                  %>
                  <%=dataStr %>
              </td>
          </tr>
          <tr>
              <td align="right" >异常消息</td>
              <td>
                  <%=ex.getMessage() %>
              </td>
          </tr>
      </table>
  </body>
</html>